package com.jiazhong.Service;

import com.jiazhong.Model.User;
import com.jiazhong.exceptions.BadPasswordException;
import com.jiazhong.exceptions.UsernameNotFoundException;

public interface UserService {
    /**
     * 用户登录
     * @param usernmae
     * @param password
     * @return
     */
    public User login(String usernmae, String password)throws UsernameNotFoundException, BadPasswordException;

    void register(User user);
}
